<template>
    <div class="pop-modal" v-if="dialogVisible">
        <div class="pop-content">
            <div class="title">
                <span></span>
                <span>{{ title }}</span>
                <img @click="dialogVisible = false" src="../../assets/close.png" alt="" srcset="">
            </div>
            <div class="content">

                <div class="img-card" v-for="item in 20" :key="item">
                    <img src="@/assets/cx_img2.png" alt="">
                    <div>人民法院报：《以数字化改革赋能数字法院建设》</div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "PopModal",
    props: {
        title: {
            type: String,
            default: '精品宣传成果'
        }
    },
    data() {
        return {
            dialogVisible: false
        }
    }
}
</script>

<style lang="less" scoped>
.pop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    background: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;

    .pop-content {
        width: 1423px;
        height: 820px;
        border-radius: 10px 10px 10px 10px;
        background: #021730;
        display: flex;
        flex-direction: column;

        .title {
            display: flex;
            justify-content: space-between;
            font-size: 30px;
            color: #FFFFFF;
            padding: 26px 30px;
            line-height: 30px;

            img {
                width: 29px;
                cursor: pointer;
            }
        }

        .content {
            flex: 1;
            width: 100%;
            overflow: auto;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;

            .img-card {
                width: 320px;
                font-size: 16px;
                color: #FFFFFF;
                flex-shrink: 0;
                display: flex;
                justify-content: center;
                align-items: center;
                background: #324459;
                flex-direction: column;
                border-radius: 10px;
                padding: 22px 30px;
                div {
                    width: 100%;
                    margin: 22px 0 0;
                    text-align: center;
                    line-height: 20px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

                img {
                    width: 120px;
                }
            }
        }
    }
}
</style>